/* Not found: /wg.static/common/js/jquery.max.js */

var max=0;function AsylumNavLink(parentId,linkId,order,href,linkText,target,width)
{this.linkId=linkId;this.parentId=parentId;this.order=order;this.href=href;this.linkText=linkText;this.target=target;this.width=width;};function AsylumNav(contId,layout,offset)
{this.menuCont=document.getElementById(contId);this.layout=layout;this.offset=(typeof offset=='undefined'?'Right':offset);this.menuItems=new Object();this.clickUnderCreated=false;};AsylumNav.prototype.AddLink=function(parentId,linkId,order,href,linkText,target,width)
{if(typeof this.menuItems[parentId]=='undefined')
{this.menuItems[parentId]=new Object();}
if(typeof width=="undefined")width=false;this.menuItems[parentId][linkId]=new AsylumNavLink(parentId,linkId,order,href,linkText,target,width);if(order>max){max=order;}};AsylumNav.prototype.CreateLevel=function(levelId,idPrefix)
{obj=this;div=document.createElement('div');div.id=idPrefix+levelId;div.levelId=levelId;div.idPrefix=idPrefix;div.className='levelDiv';div.onmouseout=function(e){obj.HideLevel(e);};div.subLevels=new Object();if(levelId!='0')
{div.style.visibility='hidden';div.className+=' subLevel';div.style.position='absolute';}
else
{div.className+=' topLevel';}
if(this.layout=='Horizontal')
{div.style.position='absolute';}
div.style.zIndex=10;if(this.menuCont){this.menuCont.appendChild(div);}
for(i=0;i<=max;i++){for(linkId in this.menuItems[levelId]){if(this.menuItems[levelId][linkId].order==i){linkDiv=document.createElement('div');linkDiv.id='asylumNavLinkDiv'+linkId;linkDiv.linkId=linkId;linkDiv.levelId=levelId;linkDiv.className='linkDiv';if(levelId=="0"){linkDiv.className+=" topLevel";if(this.menuItems[levelId][linkId].width){linkDiv.style.width=this.menuItems[levelId][linkId].width+"px";}}
div.appendChild(linkDiv);navLink=this.menuItems[levelId][linkId];a=document.createElement('a');a.id='asylumNavLink'+linkId;a.linkType='navMenu';a.linkId=linkId;a.levelId=navLink.parentId;a.parentId=navLink.parentId;if(navLink.href==''||navLink.href=='#')
{a.href='#';a.target='';a.style.cursor='default';}
else
{a.href=navLink.href;a.target=navLink.target;}
if(this.layout=='Vertical')
{a.innerHTML=navLink.linkText;}
else
{a.innerHTML=navLink.linkText.split(' ').join('&nbsp;');}
a.onmouseover=function(){obj.ShowLevel(this);};linkDiv.appendChild(a);if(linkId==pageId)
{a.className='activeLink';linkDiv.className+=' activeLink';topLink=this.GetTopLevelLink(navLink);if(typeof this.menuItems[topLink.linkId]!='undefined'&&navLink.levelId!='0')
{try{document.getElementById('asylumNavLink'+topLink.linkId).className+=' activeLink';document.getElementById('asylumNavLinkDiv'+topLink.linkId).className+=' activeLink';}catch(e){}}
if(document.getElementById("clickUnder")!=null)
{this.CreateClickUnder(topLink,true);}}
else
{}
if(typeof this.menuItems[linkId]!='undefined')
{div.subLevels[linkId]=true;}}}}
return div;};AsylumNav.prototype.Construct=function()
{if(this.menuCont==null){return;}
var obj=this;for(levelId in this.menuItems)
{this.CreateLevel(levelId,'asylumNavLevel');}
if(this.layout=='Vertical')
{if(typeof document.getElementById('tplMainSectors')!=null)
{ms=document.getElementById('tplMainSectors');ms.style.height=ms.offsetHeight;}}
else
{this.menuCont.style.height=document.getElementById('asylumNavLevel0').offsetHeight+'px';}
this.CreateBreadCrumbs();};AsylumNav.prototype.CreateClickUnder=function(navLink,active)
{if(typeof doneClickUnder=="undefined"){doneClickUnder=true;}else{return;}
if(document.getElementById("clickUnder")==null)return;obj=this;var linkId;if(this.layout=='Vertical')
{clickDiv=document.createElement('div');clickDiv.id="clickUnder";document.getElementById("clickUnder").appendChild(clickDiv);linkDiv=document.getElementById('asylumNavLinkDiv'+navLink.linkId);linkDiv.appendChild(clickDiv);}
else
{clickDiv=document.getElementById("clickUnder");}
var linkCount=0;for(linkId in this.menuItems[navLink.linkId])
{linkCount++;clickLinkDiv=document.createElement('div');clickLinkDiv.className='clickLinkDiv';clickLink=this.menuItems[navLink.linkId][linkId];txt=document.createTextNode(' ');clickDiv.appendChild(txt);a=document.createElement('a');a.id='asylumNavClickLink'+clickLink.linkId;a.className='clickLink';a.linkType='clickLink';a.linkId=linkId;a.levelId=clickLink.parentId;a.parentId=clickLink.parentId;if(clickLink.href==''||clickLink.href=='#'){a.href='#';a.target='';a.style.cursor='default';}else{a.href=clickLink.href;a.target=clickLink.target;}
if(this.layout=="Vertical"){a.innerHTML=clickLink.linkText;}else if(this.layout=="Horizontal-SubMenu"){if(clickLink.linkText.substring(0,1)==" "){a.innerHTML=clickLink.linkText.split(" ").join("&nbsp;");}else{a.innerHTML=clickLink.linkText;}}else{a.innerHTML=clickLink.linkText.split(" ").join("&nbsp;");}
a.onmouseover=function(){obj.HideAllLevels();obj.ShowLevel(this);};a.onmouseout=function(e){obj.HideLevel(e);};clickLinkDiv.appendChild(a);if(linkId==pageId)
{a.className='activeLink';clickLinkDiv.className+=' activeLink';}
clickDiv.appendChild(clickLinkDiv);txt=document.createTextNode(' ');clickDiv.appendChild(txt);}
if(linkCount==0||active==false)
{clickDiv.className='inactiveClickUnder';}
else
{clickDiv.className='activeClickUnder';}};AsylumNav.prototype.GetTopLevelLink=function(navLink)
{if(navLink.parentId=='0')
{return(navLink);}
while(1==1)
{navLink=this.GetParentLink(navLink);if(typeof navLink.parentId!='undefined')
{if(navLink.parentId=='0')
{break;}}}
return(navLink);};AsylumNav.prototype.GetParentLink=function(navLink)
{var levelId;var linkId;for(levelId in this.menuItems)
{for(linkId in this.menuItems[levelId])
{parNavLink=this.menuItems[levelId][linkId];if(parNavLink.linkId==navLink.parentId)
{return(parNavLink);}}}};AsylumNav.prototype.GetXPos=function(obj)
{var curleft=0;if(obj.offsetParent)
{while(obj.offsetParent&&obj.id!='navMenuCont')
{curleft+=obj.offsetLeft;obj=obj.offsetParent;}}
else if(obj.x)
curleft+=obj.x;return curleft;};AsylumNav.prototype.GetYPos=function(obj)
{var curtop=0;if(obj.offsetParent)
{while(obj.offsetParent&&obj.id!='navMenuCont')
{curtop+=obj.offsetTop;obj=obj.offsetParent;}}
else if(obj.y)
curtop+=obj.y;return curtop;};AsylumNav.prototype.ShowLevel=function(el)
{levelId=el.linkId;this.currentLevelId=levelId;window.clearTimeout(this.timeoutId);this.HideSubLevels(el.levelId);if(typeof this.menuItems[levelId]=='undefined')
{return;}
if(el.linkType=='clickLink')
{eP=document.getElementById('asylumNavClickLink'+el.linkId);eL=document.getElementById('asylumNavLevel'+levelId);SwapClass(eL,'subLevel','clickUnderSubLevel');}
else
{eP=document.getElementById('asylumNavLink'+levelId);eL=document.getElementById('asylumNavLevel'+levelId);SwapClass(eL,'clickUnderSubLevel','subLevel');}
if(eP.parentId=='0')
{switch(this.offset)
{case'Right':offsetX=(eP.offsetWidth);offsetY=0;break;case'Left':offsetX=(-eL.offsetWidth);offsetY=0;break;case'Bottom':offsetX=0;offsetY=eP.offsetHeight;eL.style.minWidth=eP.offsetWidth;break;}}
else
{switch(this.offset)
{case'Left':offsetX=(-eL.offsetWidth);offsetY=0;break;default:offsetX=(eP.offsetWidth);offsetY=0;break;}}
pX=this.GetXPos(eP);pY=this.GetYPos(eP);lX=pX+offsetX;lY=pY+offsetY;eL.style.position='absolute';$(eL).css({left:lX,top:lY});eL.style.visibility='visible';};AsylumNav.prototype.GetLevelWidth=function(levelId)
{maxWidth=0;for(linkId in this.menuItems[levelId])
{a=document.getElementById('asylumNavLink'+linkId);thisWidth=a.offsetWidth;if(thisWidth>maxWidth)
{maxWidth=thisWidth;}}
return(maxWidth);};AsylumNav.prototype.HideSubLevels=function(levelId,omitLevelId)
{if(typeof omitLevelId=='undefined')
{omitLevelId='0';}
eL=document.getElementById('asylumNavLevel'+levelId);for(levelId in eL.subLevels)
{this.HideSubLevels(levelId);if(levelId!=omitLevelId)
{eL=document.getElementById('asylumNavLevel'+levelId);eL.style.visibility='hidden';}}};AsylumNav.prototype.HideLevel=function(e)
{window.clearTimeout(this.timeoutId);if(!e)e=window.event;var el=(e.relatedTarget)?e.relatedTarget:e.toElement;var obj=this;var funct=function(){obj._HideLevel(el);};this.timeoutId=window.setTimeout(funct,1000);};AsylumNav.prototype._HideLevel=function(el)
{if(!el||el.id.substr(0,9)!='asylumNav'||(el.id.substr(0,9)=='asylumNav'&&el.style.visibility=='hidden'))
{this.HideAllLevels();}};AsylumNav.prototype.HideAllLevels=function()
{for(levelId in this.menuItems)
{if(levelId!='0')
{eL=document.getElementById('asylumNavLevel'+levelId);if(eL!=null)eL.style.visibility='hidden';}}};AsylumNav.prototype.CreateBreadCrumbs=function()
{if(document.getElementById("breadCrumbs")!=null)
{crumbsCont=document.getElementById("breadCrumbs");crumbsCont.style.display='none';crumbs='';homeLink='';for(levelId in this.menuItems)
{for(linkId in this.menuItems[levelId])
{navLink=this.menuItems[levelId][linkId];if(homeLink=='')
{homeLink='<a href="'+navLink.href+'" target="'+navLink.target+'">'
+navLink.linkText+'</a> &gt; ';}
if(linkId==pageId)
{i=0;parNavLink=this.GetParentLink(navLink);while(typeof parNavLink=='object')
{i++;crumbs='<a href="'+parNavLink.href+'" target="'+parNavLink.target+'">'
+parNavLink.linkText+'</a> &gt; '+crumbs;parNavLink=this.GetParentLink(parNavLink);}
if(i>1)
{crumbsCont.style.display='block';crumbsCont.innerHTML=homeLink+crumbs+'<span class="activeCrumb">'+navLink.linkText+'</span>';}
return(true);}}}}};function RemoveClass(el,className)
{var replaceName=(el.className.match(' '+className)?' '+className:className);el.className=el.className.replace(replaceName,'');};function AddClass(el,className)
{RemoveClass(el,className);el.className+=' '+className;};function SwapClass(el,removeClassName,addClassName)
{RemoveClass(el,removeClassName);AddClass(el,addClassName);};;$(function() {for (var i in tasks) {window.setTimeout(tasks[i], 0);}});function initMenu(){};$(function(){$("#navMenu").navmenu({pageInfo:{"a36734":{"P":0,"ID":36800,"C":36734,"O":0,"U":"http:\/\/www.stcatherinescollege.school.nz\/","N":"Home","T":"_top","R":"","RT":"_blank"},"a36735":{"P":36734,"ID":36801,"C":36735,"O":"1","U":"http:\/\/www.stcatherinescollege.school.nz\/education-based-on.html","N":"About Us","T":"_top","R":"","RT":"_blank"},"a36766":{"P":36735,"ID":36802,"C":36766,"O":"2","U":"http:\/\/www.stcatherinescollege.school.nz\/quality-catholic-education.html","N":"Mission, Goals and Values","T":"_top","R":"","RT":"_blank"},"a36769":{"P":36735,"ID":36805,"C":36769,"O":"4","U":"http:\/\/www.stcatherinescollege.school.nz\/sisters-of-mercy.html","N":"Mercy Links","T":"_top","R":"","RT":"_blank"},"a456313":{"P":36735,"ID":456742,"C":456313,"O":"5","U":"http:\/\/www.stcatherinescollege.school.nz\/page456742.html","N":"Staff Profiles","T":"_top","R":"","RT":"_blank"},"a36799":{"P":36735,"ID":36807,"C":36799,"O":"6","U":"http:\/\/www.stcatherinescollege.school.nz\/school-student-leaders.html","N":"Student Leaders","T":"_top","R":"","RT":"_blank"},"a44188":{"P":36735,"ID":47957,"C":44188,"O":"7","U":"http:\/\/www.stcatherinescollege.school.nz\/staff-vacancies.html","N":"Staff Vacancies","T":"_top","R":"","RT":"_blank"},"a36929":{"P":36734,"ID":36931,"C":36929,"O":"2","U":"","N":"Life at  St  Catherines","T":"","R":"","RT":"_blank"},"a36736":{"P":36929,"ID":339673,"C":36736,"O":"1","U":"http:\/\/www.stcatherinescollege.school.nz\/school-curriculum-st.html","N":"Curriculum","T":"_top","R":"","RT":"_blank"},"a36928":{"P":36929,"ID":36932,"C":36928,"O":"2","U":"http:\/\/www.stcatherinescollege.school.nz\/sports-and-culture.html","N":"Sports and Culture","T":"_top","R":"","RT":"_blank"},"a36737":{"P":36734,"ID":36809,"C":36737,"O":"3","U":"http:\/\/www.stcatherinescollege.school.nz\/english-for-speakers-2.html","N":"International  Student  Information","T":"_top","R":"","RT":"_blank"},"a36771":{"P":36737,"ID":36810,"C":36771,"O":"1","U":"http:\/\/www.stcatherinescollege.school.nz\/life-in-new.html","N":"Life in NZ","T":"_top","R":"","RT":"_blank"},"a36772":{"P":36737,"ID":36811,"C":36772,"O":"2","U":"http:\/\/www.stcatherinescollege.school.nz\/home-stays-suitable.html","N":"Homestay policy","T":"_top","R":"","RT":"_blank"},"a36774":{"P":36737,"ID":36813,"C":36774,"O":"3","U":"http:\/\/www.stcatherinescollege.school.nz\/introduction-to-the.html","N":"Introduction to the curriculum","T":"_top","R":"","RT":"_blank"},"a36775":{"P":36737,"ID":36814,"C":36775,"O":"4","U":"http:\/\/www.stcatherinescollege.school.nz\/extra-curricular-sports.html","N":"Extra Curricular Activities","T":"_top","R":"","RT":"_blank"},"a36776":{"P":36737,"ID":36815,"C":36776,"O":"5","U":"http:\/\/www.stcatherinescollege.school.nz\/st-catherine-s-2.html","N":"Policies","T":"_top","R":"","RT":"_blank"},"a36777":{"P":36737,"ID":36816,"C":36777,"O":"6","U":"http:\/\/www.stcatherinescollege.school.nz\/tuition-and-other.html","N":"Fees","T":"_top","R":"","RT":"_blank"},"a37153":{"P":36737,"ID":37156,"C":37153,"O":"7","U":"http:\/\/www.stcatherinescollege.school.nz\/st-catherine-s-1.html","N":"Code of Behaviour","T":"_top","R":"","RT":"_blank"},"a36778":{"P":36737,"ID":36817,"C":36778,"O":"8","U":"http:\/\/www.stcatherinescollege.school.nz\/st-catherine-s-3.html","N":"FAQ's","T":"_top","R":"","RT":"_blank"},"a37154":{"P":36737,"ID":37157,"C":37154,"O":"9","U":"http:\/\/www.stcatherinescollege.school.nz\/useful-information-health.html","N":"Useful Information","T":"_top","R":"","RT":"_blank"},"a36779":{"P":36737,"ID":36818,"C":36779,"O":"10","U":"http:\/\/www.stcatherinescollege.school.nz\/useful-links-international.html","N":"Links","T":"_top","R":"","RT":"_blank"},"a37155":{"P":36737,"ID":37158,"C":37155,"O":"11","U":"http:\/\/www.stcatherinescollege.school.nz\/student-testimonials-feedback.html","N":"Testimonials","T":"_top","R":"","RT":"_blank"},"a36780":{"P":36737,"ID":36819,"C":36780,"O":"12","U":"http:\/\/www.stcatherinescollege.school.nz\/international-enquiry-st.html","N":"International enquiries","T":"_top","R":"","RT":"_blank"},"a36738":{"P":36734,"ID":339624,"C":36738,"O":"4","U":"","N":"Activities-News-and-Views","T":"","R":"http:\/\/www.stcatherinescollege.school.nz\/open-day-15.html","RT":"_blank"},"a47550":{"P":36738,"ID":282779,"C":47550,"O":"1","U":"http:\/\/www.stcatherinescollege.school.nz\/open-day-15.html","N":"Open Day","T":"_top","R":"","RT":"_blank"},"a339818":{"P":36738,"ID":339828,"C":339818,"O":"2","U":"http:\/\/www.stcatherinescollege.school.nz\/back-school-dates.html","N":"Back to school dates 2010","T":"_top","R":"","RT":"_blank"},"a36781":{"P":36738,"ID":36821,"C":36781,"O":"3","U":"http:\/\/www.stcatherinescollege.school.nz\/st-catherine-s-4.html","N":"School Timetable","T":"_top","R":"","RT":"_blank"},"a142894":{"P":36738,"ID":143110,"C":142894,"O":"4","U":"http:\/\/www.stcatherinescollege.school.nz\/stationery-lists-2010.html","N":"Stationery Lists 2010","T":"_top","R":"","RT":"_blank"},"a36782":{"P":36738,"ID":36822,"C":36782,"O":"5","U":"http:\/\/www.stcatherinescollege.school.nz\/page36822.html","N":"Sports Results","T":"_top","R":"","RT":"_blank"},"a36783":{"P":36738,"ID":365789,"C":36783,"O":"6","U":"http:\/\/www.stcatherinescollege.school.nz\/college-newsletter.html","N":"Newsletter","T":"_top","R":"","RT":"_blank"},"a36784":{"P":36738,"ID":214677,"C":36784,"O":"7","U":"http:\/\/www.stcatherinescollege.school.nz\/board-of-trustees.html","N":"Board Report","T":"_top","R":"","RT":"_blank"},"a48639":{"P":36738,"ID":48640,"C":48639,"O":"8","U":"http:\/\/www.stcatherinescollege.school.nz\/scholarships.html","N":"Year 9 Scholarship","T":"_top","R":"","RT":"_blank"},"a36739":{"P":36734,"ID":36825,"C":36739,"O":"5","U":"http:\/\/www.stcatherinescollege.school.nz\/contact-st-catherines.html","N":"Contact Us","T":"_top","R":"","RT":"_blank"}},alignment:"",animate:0})});